<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/i18n/jquery.ui.datepicker-pt-BR.js"></script>
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" type="text/css" />
    <script type="text/javascript">var BASEURL = "<?php echo $sf_context->getRequest()->getRelativeUrlRoot(); ?>";</script>
  </head>
 <body>
  	<div id="geral" >
	  	<div id="cabecalho" >
	  		<div class="fl">
            	<a href="<?php echo url_for('@homepage'); ?>"><?php echo image_tag("logo.jpg"); ?></a>
	  		</div>
	  		
	  		<div id="menu" class="fl">
	  			<div class="text-title">
	  				<div class="fl"><i><?php echo sfConfig::get('app_slogan'); ?></i></div>
	  				<div class="fr">
			  			<form name="pesquisa" id="pesquisa" action="<?php echo url_for('@pesquisar'); ?>" method="get">
			                <input name="q" id="buscar" class="fl" type="text" />
			                <input class="buscarbotao fl curved5-topright curved5-bottomright" value="Buscar" type="submit" />
			                <div class="clearB"></div>
			            </form>
	  				</div>
	  				<div class="clearB"></div>
	  			</div>
	  			
	  			<div class="menu-content menu">
	  				<?php include_component('terapiavital', 'menu'); ?>
	  			</div>
  				<div class="clearB"></div>
	  		</div>
	  		<div class="clearB"></div>
	  	</div>
	  	
	  	
  		<div id="conteudo" class="clearB">
    		<?php echo $sf_content; ?>
    	</div>
    </div>
    
    	<div id="rodape">
    		<div class="rodape-content">
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Institucional', url_for('@institucional')); ?></div>
    				<?php //include_component('pagina', 'links', array('tipo' => '1'))?>
    			</div>
    			
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Produtos', url_for('@produtos')); ?></div>
    			</div>
    			
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Marketing', url_for('@marketing')); ?></div>
    			</div>
    			
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Para o público', url_for('@publico')); ?></div>
    				<?php //include_component('pagina', 'links', array('tipo' => '3'))?>
    			</div>
    			
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Galeria', url_for('@galeria')); ?></div>
    			</div>
    			
    			<div class="area">
    				<div class="area-title"><?php echo link_to('Contato', url_for('@fale-conosco')); ?></div>
    			</div>
    			
    			<div class="area">
    				<?php echo link_to(image_tag('twitter_ico.png'), 'http://twitter.com/terapiavitalbsb'); ?>
    				<?php echo link_to(image_tag('facebook_ico.png'), 'https://www.facebook.com/pages/Terapia-Vital/159988427428208'); ?>
    			</div>
    			<div class="copyrights">
		    			Terapia Vital <?php echo date('Y');?> | Todos os direitos reservados | Desenvolvido por <a href="http://www.creatix.com.br">Cratix.com.br</a>
		    		</div>
    			<div class="clearB"></div>
    		</div>
    		<div class="p10">
    			<div class="rodape"></div>
    		</div>
    	</div>

    <div id='conteudo-ajax' style="display: none;"></div>
    
    <?php include_javascripts(); ?>
    <!-- Message 
	<div id="mensagens"><?php include_component('foxsis', 'mensagem'); ?></div>-->
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-32284343-1']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>
  </body>
</html>